package cn.nfwx.tv.fragment.tv;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.nfwx.tv.R;
import cn.nfwx.tv.adapter.HotChannelAdapter;
import cn.nfwx.tv.base.BaseFragment;

/**
 *
 */
public class HotChannelFragment extends BaseFragment {
    private RecyclerView hot_channel_recyclerView;
    private HotChannelAdapter adapter;

    @Override
    public View initView() {
        View view =View.inflate(mContext,R.layout.fragment_hot_channel,null);
        hot_channel_recyclerView=view.findViewById(R.id.hot_channel_recyclerView);

        return view;
    }

    @Override
    public void initData() {
        super.initData();
        GridLayoutManager manager=new GridLayoutManager(getActivity(),4);
        hot_channel_recyclerView.setLayoutManager(manager);
        adapter=new HotChannelAdapter(getActivity());
        hot_channel_recyclerView.setAdapter(adapter);

    }


}
